package aobing;

import java.util.ArrayDeque;

public class ThreadTest extends Thread {

    static int count;

    @Override
    public synchronized void run() {
        for(int i = 0;i < 100000000;i++){
            count++;
        }
    }

    public static void main(String[] args) throws InterruptedException {
//        ThreadTest tJavaThread = new ThreadTest();
//        tJavaThread.start();
//        tJavaThread.join();
//        System.out.println("count = " + count);
        System.out.println(Integer.MAX_VALUE);
        ArrayDeque a = new ArrayDeque(7);
        a.addFirst("aaa");
        a.addFirst("aaa");
        a.addFirst("aaa");
        a.addFirst("aaa");
        a.addFirst("aaa");
        a.addFirst("aaa");
        a.addFirst("aaa");
        a.addFirst("aaa");
        a.removeLast();
        a.removeLast();
        a.addFirst("aaa");
        a.addFirst("aaa");
    }
}
